<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <div>
        <select class="province" value="暂无">
            <option selected disabled hidden>暂无</option>
            <option>江西省</option>
            <option>福建省</option>
            <option>湖北</option>
        </select>
        <select class="city" value="">
            <option disabled selected>请先填写省份
            </option>
        </select>
    </div>
    <div>

    </div>
</body>
<script>
    let data = {
        "江西省": ['南昌市', '赣州市', '九江市'],
        "福建省": ['福州市', '厦门市', '泉州市'],
    }
    alert
        ("确认要删除此条信息吗？");

    let province = document.querySelector(".province");
    let cityDom = document.querySelector(".city");

    province.onchange = function () {
        console.log(province.value);
        cityDom.innerHTML = "<option disabled selected hidden>请先填写省份</option>"
        for (let i = 0; i < data[province.value].length; i++) {
            console.log(data[province.value][i]);
            let createOption = document.createElement('option');
            createOption.innerText = data[province.value][i];
            cityDom.appendChild(createOption);
        }
    }

</script>

</html>